home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / query.arc / QUERY.DOC < prev    next >
Text File  |  1991-04-24  |  535b  |  22 lines

  1. To use Query.Com:
  2.  
  3. in a batch file, type the command Query followed by a prompt,
  4. then a redirect symbol and where to redirect it to.
  5.  
  6. EX: Query What is your favorit color > color.bat
  7.  
  8. The system will ask the question and put the answer into
  9. color.bat.  Color.bat will include the statement
  10.  
  11. Set ask= (color you chose)
  12.  
  13. You can then use the if statement to act upon it.
  14.  
  15. Example of how to use:
  16.  
  17. Query What is your name? > temp.bat
  18. Call temp.bat
  19. Echo Good morning, %ask%
  20. if %ask% == "Lee" echo hi boss
  21. del temp.bat
  22.